package com.ruoyi.wretchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wretchant.mapper.MetaTodoMapper;
import com.ruoyi.wretchant.domain.MetaTodo;
import com.ruoyi.wretchant.service.IMetaTodoService;
import com.ruoyi.common.core.text.Convert;

/**
 * 待办Service业务层处理
 * 
 * @author 简简单单 Online zuozuo
 * @date 2021-08-15
 */
@Service
public class MetaTodoServiceImpl implements IMetaTodoService 
{
    @Autowired
    private MetaTodoMapper metaTodoMapper;

    /**
     * 查询待办
     * 
     * @param id 待办主键
     * @return 待办
     */
    @Override
    public MetaTodo selectMetaTodoById(Long id)
    {
        return metaTodoMapper.selectMetaTodoById(id);
    }

    /**
     * 查询待办列表
     * 
     * @param metaTodo 待办
     * @return 待办
     */
    @Override
    public List<MetaTodo> selectMetaTodoList(MetaTodo metaTodo)
    {
        return metaTodoMapper.selectMetaTodoList(metaTodo);
    }

    /**
     * 新增待办
     * 
     * @param metaTodo 待办
     * @return 结果
     */
    @Override
    public int insertMetaTodo(MetaTodo metaTodo)
    {
        return metaTodoMapper.insertMetaTodo(metaTodo);
    }

    /**
     * 修改待办
     * 
     * @param metaTodo 待办
     * @return 结果
     */
    @Override
    public int updateMetaTodo(MetaTodo metaTodo)
    {
        return metaTodoMapper.updateMetaTodo(metaTodo);
    }

    /**
     * 批量删除待办
     * 
     * @param ids 需要删除的待办主键
     * @return 结果
     */
    @Override
    public int deleteMetaTodoByIds(String ids)
    {
        return metaTodoMapper.deleteMetaTodoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除待办信息
     * 
     * @param id 待办主键
     * @return 结果
     */
    @Override
    public int deleteMetaTodoById(Long id)
    {
        return metaTodoMapper.deleteMetaTodoById(id);
    }
}
